package cn.huiyunche.base.service.enums;

/**
 * 人送车－事故申报审核状态
 */
public enum DAccidentStatusEnum {

    STAYAUDIT(0, "待审核"), AUDITING(1, "审核中"), PASSED(2, "已通过审核"), NOTPASS(3, "未通过审核");

    private final int value;
    private final String text;

    DAccidentStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public int getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value d waybill status enum.
     *
     * @param value the value
     * @return the d waybill status enum
     */
    public static DAccidentStatusEnum getByValue(int value) {
        for (DAccidentStatusEnum temp : DAccidentStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
